pub fn new_count_distinct(input_str: &str) -> usize {
    use std::collections::HashSet;
    
    let unique_elements: HashSet<_> = input_str.split(',')
        .map(|s| s.trim())
        .filter(|s| !s.is_empty())
        .collect();

    unique_elements.len()
}
